<%-- 
    Document   : default
    Created on : 2014-4-2, 9:52:55
    Author     : lcfgly
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <title>${userinfo.users.uname}  渔具价格，渔具报价</title>
        <%@include file="/WEB-INF/jspf/view/css.jspf" %>
    </head>
    <body style="padding-top:50px;min-width:900px;" >
        <jsp:include page="/header/${userinfo.users.uid}.html" />
        <div class="bodyinfo">
            <div class="container contentbody">
                <!--中部-->
                    <!--中部左侧-->
                    <%@include file="left.jspf" %>
                    <!--中部左侧-->
                    <!--中部右侧-->
                    <div class="col-md-9 marginbottom10" style="padding-right: 0px">
                        <!--最新报价-->
                        <div class="titleline">
                            最新报价<span class="pull-right"><a href="<c:url value="/shoplist/${userinfo.users.uid}/1.html" />" ><img src="<c:url value="/img/moreprice.gif" />" style="position: relative;top:-8px;"  /></a></span>
                        </div>
                        <div class="bgwhite">
                            <ul class="productlist">
                                <c:forEach items="${product}" var="item" >
                                    <li>
                                        <img src="<c:url value="${item.product.litpic}" />" class="col-md-3 nopadding"  />
                                        <div class="pull-left col-md-5">
                                            <span class="title">${item.product.title}</span>
                                            <div style="height:40px;line-height: 40px;">报价时间：<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.price.updatetime}" /></div>
                                            <div style="color:#999"><a href="<c:url value="/product/${item.product.addtable}/${item.product.id}.html" />" target="_blank">产品详情>></a></div>
                                        </div>
                                        <div class="pull-right col-md-2" style="padding-top:30px;text-align: right;">
                                            <c:if test="${!empty userinfo.userinfer.qq}" >
                                                <a class="btn btn-warning" href="http://wpa.qq.com/msgrd?v=3&amp;uin=${userinfo.userinfer.qq}&amp;site=www.mp189.com&amp;menu=yes" target="_blank">QQ聊天</a>
                                            </c:if>
                                            <c:if test="${empty userinfo.userinfer.qq}" >
                                                <a class="btn btn-warning" href="<c:url value="/shopmessage/${userinfo.users.uid}/1.html#mesg" />">在线留言</a>
                                            </c:if>
                                        </div>
                                        <div class="col-md-3 pull-right price nopadding">￥${item.price.price}</div>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <!--end最新报价-->
                        <!--在线留言-->
                        <div class="titleline">
                            在线留言<span class="pull-right"><a href="<c:url value="/shopmessage/${userinfo.users.uid}/1.html" />" >更多></a></span>
                        </div>
                        <div class="bgwhite">
                            <c:if test="${empty message}">
                                <div class="alert alert-warning nomargin" style="margin-top:20px;">
                                    暂无留言
                                </div>
                            </c:if>
                            <ul class="msgbox">
                                <c:forEach items="${message}" var="item" >
                                    <li>
                                        <div class="user">
                                            <span class="name col-md-12 nopadding">${item.user.uname}(<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.message.uptime}" />)留言：</span>
                                            <span class="col-md-12" style="margin-top:10px;">${item.message.message}</span>
                                        </div>
                                        <c:if test="${!empty item.message.back}">
                                            <div class="shop">
                                                <span class="name col-md-12 nopadding">商家(<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.message.backtime}" />)回复：</span>
                                                <span class="col-md-12" style="margin-top:10px;">${item.message.back}</span>
                                            </div>
                                        </c:if>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <!--end在线留言-->
                    </div>
                    <!--end中部右侧-->
                <!--end中部-->
            </div>
            <%@include file="/WEB-INF/jspf/view/foot.jspf" %>
        </div>
        <%@include file="/WEB-INF/jspf/view/js.jspf" %>
    </body>
</html>

